//
//  MOCaiPuFoodViewCell.m
//  MobileOffice
//
//  Created by 冰冰 on 2019/10/23.
//  Copyright © 2019 com.idolmedia. All rights reserved.
//

#import "MOCaiPuFoodViewCell.h"

@interface MOCaiPuFoodViewCell ()

@property(nonatomic,strong)UILabel *nameLabel;

@end

@implementation MOCaiPuFoodViewCell

+(instancetype)cellWithTableView:(UITableView *)tableView andIndexPath:(NSIndexPath *)indexPath
{
    //NSString *ID = [NSString stringWithFormat:@"Cell%ld%ld",(long)[indexPath section],(long)[indexPath row]];
    NSString *ID = @"MOCaiPuFoodViewCell";
    MOCaiPuFoodViewCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil){
        cell = [[MOCaiPuFoodViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:ID];
        cell.selectionStyle = UITableViewCellSelectionStyleNone;
        [cell creatView];
    }
    return cell;
}


-(void)creatView
{
    self.nameLabel = [[UILabel alloc]initWithFrame:CGRectMake(53, 0, SCREEN_WIDTH - 106, 54)];
    self.nameLabel.textColor = KBlackColor_2A2A2A;
    self.nameLabel.font = FONT_SIZE(15);
    [self addSubview:self.nameLabel];
}


-(void)setNameStr:(NSString *)nameStr
{
    self.nameLabel.text = nameStr;
}


@end
